// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import resource from 'vue-resource'
import 'static/css/bootstrap.css'
import 'static/css/index.css'
import 'static/js/bootstrap.min.js'
import webUtil from 'static/js/util.js'
import VueLazyLoad from 'vue-lazyload'
Vue.config.productionTip = false

Vue.use(resource)
Vue.use(VueLazyLoad, {
  preLoad: 1.3,
  error: 'static/img/default.png',
  loading: 'static/img/default.png',
  attempt: 1
})

Vue.mixin({
  data() {
    return {
      domain: 'https://www.wangyanan.online',
      webUtil: webUtil
    }
  }
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})